/**
 * 图片放大观看
 */
export const previewImageMix = {
	methods: {
		previewImage: function(e) {
			let isShowType = e.currentTarget.dataset.isShowType;
			if (this.isShowType) {
				getApp().globalData[this.isShowType] = true
			}
			let index = e.currentTarget.dataset.index;
			let urllist = e.currentTarget.dataset.urllist;
			uni.previewImage({
				current: index,
				urls: urllist
			})
		}
	}
}
/**
 * 跳转到菜谱详情页面
 */
export const goMenuInfoMethods = {
	methods: {
		goMenuInfo(menuId) {
			this.$common.navigateTo('/pages/info/info?menuId=' + menuId)
		}
	}
}
